package calculator;

public class auxiliary_I_Team 
{
	public static int getLineCount(String descr, int linewarp)
	{
		  String[] temp;
		 
		  /* delimiter */
		  String delimiter = "\n";
		  /* given string will be split by the argument delimiter provided. */
		  temp = descr.split(delimiter);
		  /* print substrings */
		  int count=temp.length;
		  
		  for(int i=0; i<temp.length ; i++)
			  if(temp[i].length()>linewarp)
				  count+=(int)(temp[i].length()/linewarp);
		    
		  return count;
	}
}
